package com.fau.wmbj.server;

import com.fau.wmbj.server.config.JpaRepoFactoryBean;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 启动类
 *
 * @author jiawei
 * @version 1.0
 * @datetime 2023-03-06 14:40
 */
@EnableAdminServer
@SpringBootApplication(exclude = {
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})

@EntityScan(basePackages = {"com.fau.wmbj.server"})
@EnableJpaRepositories(basePackages = {"com.fau.wmbj.server"}, repositoryFactoryBeanClass = JpaRepoFactoryBean.class)
@EnableCaching
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }
}
